package com.heeexy.example.mytest;

import java.util.HashSet;
import java.util.Set;
/**
* @Description:    java类作用描述
* @Author:         jzhou
* @CreateDate:     2018\12\14 0014 15:59
* @UpdateUser:     jzhou
* @UpdateDate:     2018\12\14 0014 15:59
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
public class Test {
    public static void main(String[] args) {
        long star = System.currentTimeMillis();

        Set<Integer> hashset = new HashSet<>(100) ;
        for (int i = 0; i < 10000000; i++) {
            hashset.add(i) ;
        }
        if (hashset.contains(1)){
            System.out.println("1");
        }
       
        if (hashset.contains(2)){
            System.out.println("2");
        }
        if(hashset.contains(3)){
            System.out.println("3");
        }

        long end = System.currentTimeMillis();
        System.out.println("执行时间：" + (end - star));
        
    }
}
